/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pradoeditor.wizard.newitem;

import pradoeditor.comun.logger.CustomLogger;

/**
 *
 * @author jaime
 */
public class TemplateItemBuilder
{

    public static TemplateItem getTemplateItem()
    {
        TemplateItem templateItem = new TemplateItem();

        try
        {
            CategoryItem categoryItemPrado = new CategoryItem("Prado");
            categoryItemPrado.getTypesItems().add(new TypeItem("Page", "Description Page change"));
            categoryItemPrado.getTypesItems().add(new TypeItem("Php", "Description Php change"));
            categoryItemPrado.getTypesItems().add(new TypeItem("Master Page", "Description Master Page change"));
            templateItem.getCategories().add(categoryItemPrado);

            CategoryItem categoryItemWeb = new CategoryItem("Web");
            categoryItemWeb.getTypesItems().add(new TypeItem("HTML", "Description HTML change"));
            categoryItemWeb.getTypesItems().add(new TypeItem("CSS", "Description CSS change"));
            categoryItemWeb.getTypesItems().add(new TypeItem("JavaScript", "Description JavaScript change"));
            templateItem.getCategories().add(categoryItemWeb);

            CategoryItem categoryItemOther = new CategoryItem("Other");
            templateItem.getCategories().add(categoryItemOther);
        }
        catch (Exception e)
        {
            CustomLogger.writeError(TemplateItemBuilder.class.getName(), e);
        }
        return templateItem;
    }

}
